package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
 * @author xie'lin'feng
 * @date 2020-08-06-14:35
 * @description 商品优惠卷实体类
 */
public class Coupons{
	//属性
	private Integer couponsId;
	//优惠券名称
	private String couponsName;
	//默认0，0定额优惠券 1满减优惠券
	private Integer couponsType;
	//优惠券面额
	private Double couponsMoney;
	//最低消费金额
	private Double couponsSpendMoney;
	//优惠券描述
	private String couponsDesc;
	//发放数量
	private Integer couponsSendNum;
	//领取数量
	private Integer couponsReceiveNum;
	//发放开始时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date couponsBeginTime;
	//发放结束时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date couponsEndTime;
	//活动开始时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date couponsVaildbegintime;
	//活动开始时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date couponsVaildEndTime;
	//该数据创建日期
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date couponsCreateTime;
	//状态 0有效 1已删除
	private Integer couponsStatus;
	//构造器
	public Coupons(){}
	public Coupons(Integer couponsId,String couponsName,Integer couponsType,Double couponsMoney,Double couponsSpendMoney,String couponsDesc,Integer couponsSendNum,Integer couponsReceiveNum,Date couponsBeginTime,Date couponsEndTime,Date couponsVaildbegintime,Date couponsVaildEndTime,Date couponsCreateTime,Integer couponsStatus){
		this.couponsId=couponsId;
		this.couponsName=couponsName;
		this.couponsType=couponsType;
		this.couponsMoney=couponsMoney;
		this.couponsSpendMoney=couponsSpendMoney;
		this.couponsDesc=couponsDesc;
		this.couponsSendNum=couponsSendNum;
		this.couponsReceiveNum=couponsReceiveNum;
		this.couponsBeginTime=couponsBeginTime;
		this.couponsEndTime=couponsEndTime;
		this.couponsVaildbegintime=couponsVaildbegintime;
		this.couponsVaildEndTime=couponsVaildEndTime;
		this.couponsCreateTime=couponsCreateTime;
		this.couponsStatus=couponsStatus;
}
	//getter setter方法
	public void setCouponsId(Integer couponsId){
		this.couponsId=couponsId;
	}
	public Integer getCouponsId(){
		return couponsId;
	}
	public void setCouponsName(String couponsName){
		this.couponsName=couponsName;
	}
	public String getCouponsName(){
		return couponsName;
	}
	public void setCouponsType(Integer couponsType){
		this.couponsType=couponsType;
	}
	public Integer getCouponsType(){
		return couponsType;
	}
	public void setCouponsMoney(Double couponsMoney){
		this.couponsMoney=couponsMoney;
	}
	public Double getCouponsMoney(){
		return couponsMoney;
	}
	public void setCouponsSpendMoney(Double couponsSpendMoney){
		this.couponsSpendMoney=couponsSpendMoney;
	}
	public Double getCouponsSpendMoney(){
		return couponsSpendMoney;
	}
	public void setCouponsDesc(String couponsDesc){
		this.couponsDesc=couponsDesc;
	}
	public String getCouponsDesc(){
		return couponsDesc;
	}
	public void setCouponsSendNum(Integer couponsSendNum){
		this.couponsSendNum=couponsSendNum;
	}
	public Integer getCouponsSendNum(){
		return couponsSendNum;
	}
	public void setCouponsReceiveNum(Integer couponsReceiveNum){
		this.couponsReceiveNum=couponsReceiveNum;
	}
	public Integer getCouponsReceiveNum(){
		return couponsReceiveNum;
	}
	public void setCouponsBeginTime(Date couponsBeginTime){
		this.couponsBeginTime=couponsBeginTime;
	}
	public Date getCouponsBeginTime(){
		return couponsBeginTime;
	}
	public void setCouponsEndTime(Date couponsEndTime){
		this.couponsEndTime=couponsEndTime;
	}
	public Date getCouponsEndTime(){
		return couponsEndTime;
	}
	public void setCouponsVaildbegintime(Date couponsVaildbegintime){
		this.couponsVaildbegintime=couponsVaildbegintime;
	}
	public Date getCouponsVaildbegintime(){
		return couponsVaildbegintime;
	}
	public void setCouponsVaildEndTime(Date couponsVaildEndTime){
		this.couponsVaildEndTime=couponsVaildEndTime;
	}
	public Date getCouponsVaildEndTime(){
		return couponsVaildEndTime;
	}
	public void setCouponsCreateTime(Date couponsCreateTime){
		this.couponsCreateTime=couponsCreateTime;
	}
	public Date getCouponsCreateTime(){
		return couponsCreateTime;
	}
	public void setCouponsStatus(Integer couponsStatus){
		this.couponsStatus=couponsStatus;
	}
	public Integer getCouponsStatus(){
		return couponsStatus;
	}
	public String toString(){
		return "Coupons [couponsId=" + couponsId + ", couponsName=" + couponsName + ", couponsType=" + couponsType + ", couponsMoney=" + couponsMoney + ", couponsSpendMoney=" + couponsSpendMoney + ", couponsDesc=" + couponsDesc + ", couponsSendNum=" + couponsSendNum + ", couponsReceiveNum=" + couponsReceiveNum + ", couponsBeginTime=" + couponsBeginTime + ", couponsEndTime=" + couponsEndTime + ", couponsVaildbegintime=" + couponsVaildbegintime + ", couponsVaildEndTime=" + couponsVaildEndTime + ", couponsCreateTime=" + couponsCreateTime + ", couponsStatus=" + couponsStatus + "]";
	}
}

